using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Daniel.Core.Models.Mapping;

namespace Daniel.Core.Models
{
    public partial class NopCommerceDanielContext : DbContext
    {
        static NopCommerceDanielContext()
        {
            Database.SetInitializer<NopCommerceDanielContext>(null);
        }

        public NopCommerceDanielContext()
            : base("Name=NopCommerceDanielContext")
        {
        }

        public DbSet<AclRecord> AclRecords { get; set; }
        public DbSet<ActivityLog> ActivityLogs { get; set; }
        public DbSet<ActivityLogType> ActivityLogTypes { get; set; }
        public DbSet<Address> Addresses { get; set; }
        public DbSet<Affiliate> Affiliates { get; set; }
        public DbSet<BackInStockSubscription> BackInStockSubscriptions { get; set; }
        public DbSet<BlogComment> BlogComments { get; set; }
        public DbSet<BlogPost> BlogPosts { get; set; }
        public DbSet<Campaign> Campaigns { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<CategoryTemplate> CategoryTemplates { get; set; }
        public DbSet<CheckoutAttribute> CheckoutAttributes { get; set; }
        public DbSet<CheckoutAttributeValue> CheckoutAttributeValues { get; set; }
        public DbSet<Country> Countries { get; set; }
        public DbSet<CrossSellProduct> CrossSellProducts { get; set; }
        public DbSet<Currency> Currencies { get; set; }
        public DbSet<Customer> Customers { get; set; }
        public DbSet<CustomerAttribute> CustomerAttributes { get; set; }
        public DbSet<CustomerAttributeValue> CustomerAttributeValues { get; set; }
        public DbSet<CustomerRole> CustomerRoles { get; set; }
        public DbSet<DeliveryDate> DeliveryDates { get; set; }
        public DbSet<Discount> Discounts { get; set; }
        public DbSet<DiscountRequirement> DiscountRequirements { get; set; }
        public DbSet<DiscountUsageHistory> DiscountUsageHistories { get; set; }
        public DbSet<Download> Downloads { get; set; }
        public DbSet<EmailAccount> EmailAccounts { get; set; }
        public DbSet<ExternalAuthenticationRecord> ExternalAuthenticationRecords { get; set; }
        public DbSet<Forums_Forum> Forums_Forum { get; set; }
        public DbSet<Forums_Group> Forums_Group { get; set; }
        public DbSet<Forums_Post> Forums_Post { get; set; }
        public DbSet<Forums_PrivateMessage> Forums_PrivateMessage { get; set; }
        public DbSet<Forums_Subscription> Forums_Subscription { get; set; }
        public DbSet<Forums_Topic> Forums_Topic { get; set; }
        public DbSet<GenericAttribute> GenericAttributes { get; set; }
        public DbSet<GiftCard> GiftCards { get; set; }
        public DbSet<GiftCardUsageHistory> GiftCardUsageHistories { get; set; }
        public DbSet<Language> Languages { get; set; }
        public DbSet<LocaleStringResource> LocaleStringResources { get; set; }
        public DbSet<LocalizedProperty> LocalizedProperties { get; set; }
        public DbSet<Log> Logs { get; set; }
        public DbSet<Manufacturer> Manufacturers { get; set; }
        public DbSet<ManufacturerTemplate> ManufacturerTemplates { get; set; }
        public DbSet<MeasureDimension> MeasureDimensions { get; set; }
        public DbSet<MeasureWeight> MeasureWeights { get; set; }
        public DbSet<MessageTemplate> MessageTemplates { get; set; }
        public DbSet<News> News { get; set; }
        public DbSet<NewsComment> NewsComments { get; set; }
        public DbSet<NewsLetterSubscription> NewsLetterSubscriptions { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<OrderItem> OrderItems { get; set; }
        public DbSet<OrderNote> OrderNotes { get; set; }
        public DbSet<PermissionRecord> PermissionRecords { get; set; }
        public DbSet<Picture> Pictures { get; set; }
        public DbSet<Poll> Polls { get; set; }
        public DbSet<PollAnswer> PollAnswers { get; set; }
        public DbSet<PollVotingRecord> PollVotingRecords { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<Product_Category_Mapping> Product_Category_Mapping { get; set; }
        public DbSet<Product_Manufacturer_Mapping> Product_Manufacturer_Mapping { get; set; }
        public DbSet<Product_Picture_Mapping> Product_Picture_Mapping { get; set; }
        public DbSet<Product_ProductAttribute_Mapping> Product_ProductAttribute_Mapping { get; set; }
        public DbSet<Product_SpecificationAttribute_Mapping> Product_SpecificationAttribute_Mapping { get; set; }
        public DbSet<ProductAttribute> ProductAttributes { get; set; }
        public DbSet<ProductReview> ProductReviews { get; set; }
        public DbSet<ProductReviewHelpfulness> ProductReviewHelpfulnesses { get; set; }
        public DbSet<ProductTag> ProductTags { get; set; }
        public DbSet<ProductTemplate> ProductTemplates { get; set; }
        public DbSet<ProductVariantAttributeCombination> ProductVariantAttributeCombinations { get; set; }
        public DbSet<ProductVariantAttributeValue> ProductVariantAttributeValues { get; set; }
        public DbSet<QueuedEmail> QueuedEmails { get; set; }
        public DbSet<RecurringPayment> RecurringPayments { get; set; }
        public DbSet<RecurringPaymentHistory> RecurringPaymentHistories { get; set; }
        public DbSet<RelatedProduct> RelatedProducts { get; set; }
        public DbSet<ReturnRequest> ReturnRequests { get; set; }
        public DbSet<RewardPointsHistory> RewardPointsHistories { get; set; }
        public DbSet<ScheduleTask> ScheduleTasks { get; set; }
        public DbSet<SearchTerm> SearchTerms { get; set; }
        public DbSet<Setting> Settings { get; set; }
        public DbSet<Shipment> Shipments { get; set; }
        public DbSet<ShipmentItem> ShipmentItems { get; set; }
        public DbSet<ShippingMethod> ShippingMethods { get; set; }
        public DbSet<ShoppingCartItem> ShoppingCartItems { get; set; }
        public DbSet<SpecificationAttribute> SpecificationAttributes { get; set; }
        public DbSet<SpecificationAttributeOption> SpecificationAttributeOptions { get; set; }
        public DbSet<StateProvince> StateProvinces { get; set; }
        public DbSet<Store> Stores { get; set; }
        public DbSet<StoreMapping> StoreMappings { get; set; }
        public DbSet<TaxCategory> TaxCategories { get; set; }
        public DbSet<TBatch> TBatches { get; set; }
        public DbSet<TBatchContent> TBatchContents { get; set; }
        public DbSet<TBATCHINFORMATION> TBATCHINFORMATIONs { get; set; }
        public DbSet<TierPrice> TierPrices { get; set; }
        public DbSet<Topic> Topics { get; set; }
        public DbSet<UrlRecord> UrlRecords { get; set; }
        public DbSet<Vendor> Vendors { get; set; }
        public DbSet<Warehouse> Warehouses { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AclRecordMap());
            modelBuilder.Configurations.Add(new ActivityLogMap());
            modelBuilder.Configurations.Add(new ActivityLogTypeMap());
            modelBuilder.Configurations.Add(new AddressMap());
            modelBuilder.Configurations.Add(new AffiliateMap());
            modelBuilder.Configurations.Add(new BackInStockSubscriptionMap());
            modelBuilder.Configurations.Add(new BlogCommentMap());
            modelBuilder.Configurations.Add(new BlogPostMap());
            modelBuilder.Configurations.Add(new CampaignMap());
            modelBuilder.Configurations.Add(new CategoryMap());
            modelBuilder.Configurations.Add(new CategoryTemplateMap());
            modelBuilder.Configurations.Add(new CheckoutAttributeMap());
            modelBuilder.Configurations.Add(new CheckoutAttributeValueMap());
            modelBuilder.Configurations.Add(new CountryMap());
            modelBuilder.Configurations.Add(new CrossSellProductMap());
            modelBuilder.Configurations.Add(new CurrencyMap());
            modelBuilder.Configurations.Add(new CustomerMap());
            modelBuilder.Configurations.Add(new CustomerAttributeMap());
            modelBuilder.Configurations.Add(new CustomerAttributeValueMap());
            modelBuilder.Configurations.Add(new CustomerRoleMap());
            modelBuilder.Configurations.Add(new DeliveryDateMap());
            modelBuilder.Configurations.Add(new DiscountMap());
            modelBuilder.Configurations.Add(new DiscountRequirementMap());
            modelBuilder.Configurations.Add(new DiscountUsageHistoryMap());
            modelBuilder.Configurations.Add(new DownloadMap());
            modelBuilder.Configurations.Add(new EmailAccountMap());
            modelBuilder.Configurations.Add(new ExternalAuthenticationRecordMap());
            modelBuilder.Configurations.Add(new Forums_ForumMap());
            modelBuilder.Configurations.Add(new Forums_GroupMap());
            modelBuilder.Configurations.Add(new Forums_PostMap());
            modelBuilder.Configurations.Add(new Forums_PrivateMessageMap());
            modelBuilder.Configurations.Add(new Forums_SubscriptionMap());
            modelBuilder.Configurations.Add(new Forums_TopicMap());
            modelBuilder.Configurations.Add(new GenericAttributeMap());
            modelBuilder.Configurations.Add(new GiftCardMap());
            modelBuilder.Configurations.Add(new GiftCardUsageHistoryMap());
            modelBuilder.Configurations.Add(new LanguageMap());
            modelBuilder.Configurations.Add(new LocaleStringResourceMap());
            modelBuilder.Configurations.Add(new LocalizedPropertyMap());
            modelBuilder.Configurations.Add(new LogMap());
            modelBuilder.Configurations.Add(new ManufacturerMap());
            modelBuilder.Configurations.Add(new ManufacturerTemplateMap());
            modelBuilder.Configurations.Add(new MeasureDimensionMap());
            modelBuilder.Configurations.Add(new MeasureWeightMap());
            modelBuilder.Configurations.Add(new MessageTemplateMap());
            modelBuilder.Configurations.Add(new NewsMap());
            modelBuilder.Configurations.Add(new NewsCommentMap());
            modelBuilder.Configurations.Add(new NewsLetterSubscriptionMap());
            modelBuilder.Configurations.Add(new OrderMap());
            modelBuilder.Configurations.Add(new OrderItemMap());
            modelBuilder.Configurations.Add(new OrderNoteMap());
            modelBuilder.Configurations.Add(new PermissionRecordMap());
            modelBuilder.Configurations.Add(new PictureMap());
            modelBuilder.Configurations.Add(new PollMap());
            modelBuilder.Configurations.Add(new PollAnswerMap());
            modelBuilder.Configurations.Add(new PollVotingRecordMap());
            modelBuilder.Configurations.Add(new ProductMap());
            modelBuilder.Configurations.Add(new Product_Category_MappingMap());
            modelBuilder.Configurations.Add(new Product_Manufacturer_MappingMap());
            modelBuilder.Configurations.Add(new Product_Picture_MappingMap());
            modelBuilder.Configurations.Add(new Product_ProductAttribute_MappingMap());
            modelBuilder.Configurations.Add(new Product_SpecificationAttribute_MappingMap());
            modelBuilder.Configurations.Add(new ProductAttributeMap());
            modelBuilder.Configurations.Add(new ProductReviewMap());
            modelBuilder.Configurations.Add(new ProductReviewHelpfulnessMap());
            modelBuilder.Configurations.Add(new ProductTagMap());
            modelBuilder.Configurations.Add(new ProductTemplateMap());
            modelBuilder.Configurations.Add(new ProductVariantAttributeCombinationMap());
            modelBuilder.Configurations.Add(new ProductVariantAttributeValueMap());
            modelBuilder.Configurations.Add(new QueuedEmailMap());
            modelBuilder.Configurations.Add(new RecurringPaymentMap());
            modelBuilder.Configurations.Add(new RecurringPaymentHistoryMap());
            modelBuilder.Configurations.Add(new RelatedProductMap());
            modelBuilder.Configurations.Add(new ReturnRequestMap());
            modelBuilder.Configurations.Add(new RewardPointsHistoryMap());
            modelBuilder.Configurations.Add(new ScheduleTaskMap());
            modelBuilder.Configurations.Add(new SearchTermMap());
            modelBuilder.Configurations.Add(new SettingMap());
            modelBuilder.Configurations.Add(new ShipmentMap());
            modelBuilder.Configurations.Add(new ShipmentItemMap());
            modelBuilder.Configurations.Add(new ShippingMethodMap());
            modelBuilder.Configurations.Add(new ShoppingCartItemMap());
            modelBuilder.Configurations.Add(new SpecificationAttributeMap());
            modelBuilder.Configurations.Add(new SpecificationAttributeOptionMap());
            modelBuilder.Configurations.Add(new StateProvinceMap());
            modelBuilder.Configurations.Add(new StoreMap());
            modelBuilder.Configurations.Add(new StoreMappingMap());
            modelBuilder.Configurations.Add(new TaxCategoryMap());
            modelBuilder.Configurations.Add(new TBatchMap());
            modelBuilder.Configurations.Add(new TBatchContentMap());
            modelBuilder.Configurations.Add(new TBATCHINFORMATIONMap());
            modelBuilder.Configurations.Add(new TierPriceMap());
            modelBuilder.Configurations.Add(new TopicMap());
            modelBuilder.Configurations.Add(new UrlRecordMap());
            modelBuilder.Configurations.Add(new VendorMap());
            modelBuilder.Configurations.Add(new WarehouseMap());
        }
    }
}
